package com.by.service.impl;

import com.by.bean.ProductCategory;
import com.by.common.crud.BaseServiceImpl;
import com.by.mapper.ProductCategoryMapper;
import com.by.service.ProductCategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Ye QS
 * @version 0.1
 * @className ProductCategoryServiceImpl
 * @description
 * @date 2024/9/23 15:16
 * @since jdk11
 */
@Service
public class ProductCategoryServiceImpl extends BaseServiceImpl<ProductCategory, ProductCategoryMapper> implements ProductCategoryService {

    @Override
    public List<ProductCategory> queryAll() {
        return baseMapper.queryChild(0);
    }
}